#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>


#include "ac/AConnection.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_btnConnect_clicked();
    void onHostFound();
    void onConnected();
    void onTcpError(QAbstractSocket::SocketError error);
    void onTcpReadData();

    void on_btnSend_clicked();

private:
    Ui::MainWindow *ui;

    QTcpSocket*   pSocket;

    AConnection   mConn;
};

#endif // MAINWINDOW_H
